package com.gexin.model.activity;

import com.gexin.model.activity.base.BaseCompanyReserve;
import org.apache.logging.log4j.core.util.UuidUtil;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 业务名称:  t_company_reserve() 
 */
@SuppressWarnings("serial")
public class CompanyReserve extends BaseCompanyReserve<CompanyReserve> {
	public static final CompanyReserve dao = new CompanyReserve();

	public void setCompanyReserve(String userId, BigDecimal reserve){
		this.setId(UuidUtil.getTimeBasedUuid()+"");
		this.setReserve(reserve);
		this.setUserId(userId);

		Long date = new Date().getTime();
		this.setCreateTime(date);
		this.setUpdateTime(date);
	}
}
